package com.example.ksxtxkty.Controller;


import com.example.ksxtxkty.service.ApiService;
import com.example.ksxtxkty.service.EnterpriseFinInfoBatchCreator;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class ApiController {

    @RequestMapping("/submit")
    public void ApiForwarder () {
     EnterpriseFinInfoBatchCreator.tocreate();
    }


    @RequestMapping("/test")
    public String test () throws Exception {
        ApiService apiService = new ApiService();
        return apiService.test();
    }

}
